package com.jiutian.admin.service.impl;

import com.jiutian.admin.dao.impl.AdminDaoImpl;
import com.jiutian.admin.service.AdminManager;
import com.jiutian.hotel.pojo.*;

public class AdminManagerImpl implements AdminManager{
    
    public boolean saveHotelinfo(HotelInfoData hotelinfo){
        AdminDaoImpl daoimpl=new AdminDaoImpl();
        return daoimpl.saveHotelinfo(hotelinfo);
    }
    
    public boolean saveHoteldetail(HotelDetailData hoteldetail){
        AdminDaoImpl daoimpl=new AdminDaoImpl();
        return daoimpl.saveHoteldetail(hoteldetail);
    }
    
    public HotelInfoData getHotelinfo(String hotelid){
        AdminDaoImpl daoimpl=new AdminDaoImpl();
        return daoimpl.getHotelinfo(hotelid);
    }
    
    public HotelDetailData getHoteldetail(String hotelid){
    	AdminDaoImpl daoimpl=new AdminDaoImpl();
    	return daoimpl.getHoteldetail(hotelid);
    }
}
